package com.ruoyi.statistics.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;

@Mapper
public interface SysStatisticsMapper {
    public Integer getAllStoreCount();
    public Integer getAllAgentCount();


    public Integer getAllOrder();

    public Integer getAgentOrder(Long deptId);

    public Integer getAgentStoreCount(Long deptId);

    public BigDecimal getAgentAmount(Long deptId);

    BigDecimal getAllAgentAmount();

    BigDecimal getAllStoreAmount();

    Integer getYesterdayAllStore();

    Integer getYesterdayAllAgentCount();

    Integer getYesterdayAllOrder();

    BigDecimal getAllYesterdayAgentAmount();

    BigDecimal getAllYesterdayStoreAmount();

    Integer getYesterdayAgentStoreCount(@Param("deptId") Long deptId);

    Integer getYesterdayAgentOrder(@Param("deptId") Long deptId);

    BigDecimal getYesterdayAgentAmount(@Param("deptId") Long deptId);

    Integer getNowAllStoreCount();

    Integer getNowAllAgentCount();

    Integer getNowAllOrder();

    BigDecimal getNowAllStoreAmount();

    BigDecimal getNowAllAgentAmount();

    Integer getNowAgentStoreCount(Long deptId);

    Integer getNowAgentOrder(Long deptId);

    BigDecimal getNowAgentAmount(Long deptId);

    Long selectAgentId(Long deptId);
}
